<template>
  <div>
       <van-tabbar v-model="flag">
      <van-tabbar-item icon="home-o" to="/home">首页</van-tabbar-item>
      <van-tabbar-item icon="friends-o" to="/user">用户</van-tabbar-item>
      <van-tabbar-item icon="balance-list-o">交易</van-tabbar-item>
      <van-tabbar-item icon="user-o" to="/mine">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  data(){
    return{
      flag:this.active
    }
  },

    props:['active']
}
</script>

<style>

</style>